import * as THREE from 'three';
import {PerspectiveCamera, Scene, WebGLRenderer} from "three";


export class ThreeUtil {
    private readonly _camera: PerspectiveCamera;
    private readonly _renderer: WebGLRenderer;
    private readonly _scene: Scene;

    animateHandle:number = 0;
    items: {[key:string]: any} = {};


    constructor() {
        this._camera = new THREE.PerspectiveCamera(50, window.innerWidth / window.innerHeight , 0.1, 100);
        this._renderer = new THREE.WebGLRenderer();
        this._scene = new THREE.Scene();
    }

    get camera () { return this._camera; }
    get scene () { return this._scene; }
    get renderer () { return this._renderer; }
}